package com.dhnsoft.education.service.edu;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhnsoft.education.entity.edu.EduCourse;
import com.dhnsoft.education.entity.edu.frontVo.CourseFrontVo;
import com.dhnsoft.education.entity.edu.frontVo.CourseWebVo;
import com.dhnsoft.education.entity.edu.vo.CourseInfoVo;
import com.dhnsoft.education.entity.edu.vo.CoursePublishVo;
import com.dhnsoft.education.entity.edu.vo.SubjectNestedVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 代浩楠
 * @since 2022-02-19
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo publishCourseInfo(String id);

    void removeCourse(String courseId);

    List<EduCourse> getHotCourse();

    Map<String, Object> getCourseFrontList(Page<EduCourse> coursePage, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);

    List<SubjectNestedVo> getSubjectNestedList(Long count);
}
